package com.k1998.mybatis.dao;

import com.k1998.mybatis.bean.Student;
import com.k1998.mybatis.bean.StudentLogin;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface IStudentLoginDao {
    public List<StudentLogin> findAll(@Param("username") String username, @Param("pageStart") int pageStart, @Param("pageSize") int pageSize);
    public int getCounts(@Param("username") String username);
    public int insertStudentLogin(StudentLogin studentLogin);
    public StudentLogin detailStudentLogin(StudentLogin studentLogin);
    public int deleteStudentLogin(StudentLogin studentLogin);
    public int updateStudentLogin(StudentLogin studentLogin);
    public int getStudentByLogin(@Param("username") String username, @Param("password") String password);
}
